<template>
  <div class="flex_space_between login_container">
    <div class="flex_end login_bg"></div>
    <div class="login_container_form ">
      <div class="login_logo flca">
        <div class="login_box flc">
          <div class="fs26 cGR flca wp100"><img src="@/assets/img/logo.png" class="w68 h68" /></div>
          <div class="fs26 cGR wp100 tc">万象掌柜</div>
          <div class="fs12 cGR wp100 tc">wanxiangzhanggui</div>
        </div>
      </div>
      <div class=" login_container_formContent mt100 ml80">
        <el-form ref="form" class="login_form " :model="params">
          <el-form-item prop="phone">
            <label class="login_label mb12">手机号</label>
            <el-input v-model="params.phone" placeholder="请输入手机号" clear="pub_input  pub_input_search" :maxlength="11">
              <img slot="prefix" src="@/assets/img/loginRegister/user.png" class="pub_imgSize16" />
            </el-input>
          </el-form-item>
          <el-form-item prop="verifyCode" class="verifyCode">
            <label class="login_label mb12">验证码</label>
            <div class="flex_space_between">
              <el-input v-model="params.verifyCode" placeholder="请输入验证码" clear="pub_input  pub_input_search" :maxlength="6"> </el-input>
              <div class="verifyLabel  w100" :class="{ grayLabel: countdown > 0 }" @click="sendCode">{{ verifyLabel }}</div>
            </div>
          </el-form-item>
          <el-form-item prop="password">
            <label class="login_label ">设置密码</label>
            <el-input v-model="params.password" :type="isShowPas ? 'text' : 'password'" placeholder="请输入密码" class="pub_input  mt12 pub_input_search" :maxlength="15">
              <img slot="prefix" src="@/assets/img/loginRegister/password.png" class="pub_imgSize16" />
              <img v-show="!isShowPas" slot="suffix" src="@/assets/img/loginRegister/lookPassword.png" class="pub_imgSize16" @click="showPassword('isShowPas')" />
              <img v-show="isShowPas" slot="suffix" src="@/assets/img/loginRegister/closePassword.png" class="pub_imgSize16" @click="showPassword('isShowPas')" />
            </el-input>
          </el-form-item>
          <el-form-item prop="passwordAgain">
            <label class="login_label ">确认密码</label>
            <el-input v-model="params.passwordAgain" :type="isShowPasAgain ? 'text' : 'password'" placeholder="请再次输入密码" class="pub_input  mt12 pub_input_search" :maxlength="15">
              <img slot="prefix" src="@/assets/img/loginRegister/password.png" class="pub_imgSize16" />
              <img v-show="!isShowPas" slot="suffix" src="@/assets/img/loginRegister/lookPassword.png" class="pub_imgSize16" @click="showPassword('isShowPasAgain')" />
              <img v-show="isShowPas" slot="suffix" src="@/assets/img/loginRegister/closePassword.png" class="pub_imgSize16" @click="showPassword('isShowPasAgain')" />
            </el-input>
          </el-form-item>
        </el-form>
        <el-button type="text" class="mt24 pub_button login_button " @click="register">
          确认
        </el-button>
        <div class="login_goReigister flex_center mt24">
          <span> 已经有账号? </span>
          <span class="login_goReigister_text ml5" @click="goPage('login')">去登录</span>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import modifyPassword from '@/mixin/modifyPassword';
export default {
  mixins: [modifyPassword],
  data() {
    return {};
  },
  methods: {}
};
</script>
<style lang="less" scoped>
.verifyLabel {
  color: #27c1a5;
  font-size: 14px;
  cursor: pointer;
  text-align: right;
}
.grayLabel.verifyLabel {
  color: rgba(0, 0, 0, 0.4);
}
.verifyCode {
  ::v-deep .el-input {
    width: 300px;
  }
}
</style>
